﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Demo05211
{
    class DeliveryRobot:Robot
    {
        private double hours;
        public double Hours { get { return this.hours; }set { this.hours = value; } }

        public DeliveryRobot(string name,double hours):base(name)
        {
            this.hours = hours;
        }
        public override void Working()
        {
            Console.WriteLine("我叫{0}，我工作了{1}个小时！",base.Name,this.hours);
        }
    }
}
